﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuestionSetLibrary
{
    public class QuestionSet
    {
        public int id;
        public string setName;
        public List<Question> questions = new List<Question>();

        public QuestionSet(string setName)
        {
            // TODO: Complete member initialization
            this.setName = setName;
        }

        public int getId()
        {
            return id;
        }

        public void setId(int id)
        {
            this.id = id;
        }
        public void addQuestion(Question q)
        {
            questions.Add(q);
        }

        public string getSetName()
        {
            return setName;
        }

        public Question getQuestion(int index)
        {

            return questions[index];
        }

        public string getQuestionName(int index)
        {
            return questions[index].getQuestionName();
        }
    }
}
